package miao.demo.service.impl;

import miao.demo.dao.BookDao;
import miao.demo.dao.UserDao;
import miao.demo.service.BookService;

public class BookServiceImpl implements BookService {
    /*
        配置引用类型
     */
    private BookDao bookDao;
    private UserDao userDao;


    @Override
    public void save() {
        System.out.println("book service save....");
        bookDao.save();
        userDao.save();
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;

    }
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

}
